package my.graduation.properties;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: RavenLyn
 * @Date: 2024-11-28
 */

@Component
@ConfigurationProperties(prefix = "my-graduation.jwt")
@Data
public class JwtProperties {

    /**
     * 生成doctor jwt令牌相关配置
     */
    private String doctorSecretKey;
    private long doctorTtl;
    private String doctorTokenName;

    /**
     * 生成admin jwt令牌相关配置
     */
    private String adminSecretKey;
    private long adminTtl;
    private String adminTokenName;

    /**
     * 生成patient jwt令牌相关配置
     */
    private String patientSecretKey;
    private long patientTtl;
    private String patientTokenName;


}
